package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 分享业务对象 share
 *
 * @author ruoyi
 * @date 2023-08-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ShareBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分享码
     */
    @NotNull(message = "分享码不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long code;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 有效期
     */
    @NotNull(message = "有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long exp;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


    private String paths;
}
